import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Faculty fac = new Faculty("张三", 32, "33006", "2019", "10", "25", "讲师");
        Student stu = new Student("李四", 19, "20201103", "202011");
        Staff sta = new Staff("王五", 27, "32011", "2015", "06", "17", "教务员");
        fac.setSex('男');
        fac.setTel("13600770077");
        fac.setDepartment("数信学院");
        fac.setMajor("数学");
        stu.setSex('女');
        stu.setTel("18000009999");
        stu.setPosition("班长");
        sta.setSex('男');
        sta.setTel("18966666666");
        sta.setDepartment("航制学院");
        Scanner input = new Scanner(System.in);
        int i = input.nextInt();
        if (i == 1) {
            fac.show();
        } else if (i == 2) {
            stu.show();
        } else if (i == 3) {
            sta.show();
        } else {
            System.out.println("Wrong Format");
        }
    }
}
class Role {
    protected String name;
    protected int age;
    protected char sex;
    protected String tel;

    public void setSex(char sex) {
        this.sex = sex;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public void setName(String name) {
        this.name = name;
    }
}

class Student extends Role {
    protected String id;
    protected String cls;
    protected String Position;

    public void setPosition(String position) {
        Position = position;
    }

    public Student(String name, int i, String s, String s1) {
        super();
        this.name = name;
        this.age = i;
        this.id = s;
        this.cls = s1;
    }

    void show() {
        System.out.printf("我是%s，%c，年龄%d岁。电话是%s。学号是%s，来自%s班。担任%s职务。\n",
                this.name,this.sex, this.age, this.tel,this.id, this.cls,this.Position);
    }
}

class Employee extends Role {
    protected String work_id;
    protected String year;
    protected String month;
    protected String day;
    protected String department;

    public void setDepartment(String department) {
        this.department = department;
    }
}

class Faculty extends Employee {
    protected String job;
    protected String major;

    public void setMajor(String major) {
        this.major = major;
    }

    public Faculty(String name, int i, String s, String s1, String s2, String s3, String job) {
        super();
        this.name = name;
        this.age = i;
        this.work_id = s;
        this.year = s1;
        this.month = s2;
        this.day = s3;
        this.job = job;
    }

    void show() {
        System.out.printf("我是%s，%c，年龄%d岁。电话是%s。工号是%s，%s年%s月%s日入职。就职于数信学院。是一名教师，%s专业，%s职称。\n"
                , this.name, this.sex,this.age, this.tel,this.work_id, this.year, this.month, this.day,this.major, this.job);
    }
}

class Staff extends Employee {
    protected String work;

    public Staff(String name, int i, String s, String s1, String s2, String s3, String work) {
        super();
        this.name = name;
        this.age = i;
        this.work_id = s;
        this.year = s1;
        this.month = s2;
        this.day = s3;
        this.work = work;
    }

    void show() {
        System.out.printf("我是%s，%c，年龄%d岁。电话是%s。工号是%s，%s年%s月%s日入职。就职于航制学院。是一名%s。\n"
                , this.name,this.sex, this.age,this.tel, this.work_id, this.year,
                Integer.parseInt(this.month), this.day, this.work);
    }
}